package cn.m1c.cntt.wuhan2020.cnttlifegoods.order.enums

import cn.m1c.cntt.wuhan2020.cnttlifegoods.common.enums.BaseEnum

enum class OrderEnum :BaseEnum{
    INIT(10,"登记中"),
    DONE(15,"登记结束"),
    BUYING(20,"采购进行中"),
    BOUGHT(25,"采购完成"),
    HANDOUT(30,"分发中"),
    HANDOUTUSER(35,"参与者到手"),//该状态用于每一个参与者的订单上，不作为整个采购活动的状态使用
    FINISH(40,"完成"),
    ;


    var code:Int
    var message:String
    constructor(code:Int,message:String){
        this.code = code
        this.message = message
    }

    override fun code(): Int {
        return this.code
    }

    override fun message(): String {
        return this.message
    }

}